package com.cleverest.cleverestdiary.pojo;

import com.cleverest.cleverestdiary.anno.State;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.groups.Default;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Schedule {
    @NotNull(groups = Update.class)
    private Integer id; // 主键ID
    @NotEmpty
    private String title; // 日程标题
    @NotEmpty
    private String content; // 日程描述
    private Integer state; //发布状态 已完成|未完成
    @NotNull
    private Integer emergencyDegree; // 日程紧急程度
    @NotNull
    private LocalDateTime remindTime; // 提醒时间
    private LocalDateTime createTime; // 创建时间
    private LocalDateTime updateTime; // 更新时间
    private Integer categoryId; //日程分类id
    private Integer createUser; //创建人ID

    public interface Add extends Default {
    }

    public interface Update extends Default {
    }
}